<!--
 * @Author: your name
 * @Date: 2020-12-28 17:53:01
 * @LastEditTime: 2020-12-29 14:29:35
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \basicvue\vuehtml\vueindex.html
-->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-text&v-html</title>
    <link rel="stylesheet" href="../assets/css/common.css">
    <script src="../assets/js/vue.js"></script>
</head>
<body>
    <div id="app">
        <a href="../index.html" class="retu">BACK</a>
        <h1>v-text 不解析html标签   v-html可以解析html代码</h1>
        <span>{{ message }}</span> = <span v-text="message"></span><br/>
        <span v-html="msgHtml"></span>
    </div>
    <script>
        let app = new Vue({
            el : '#app',
            data:{
               message : '欢迎来到vue',
               msgHtml : '<h2>Hello world</h2>'
            }
        });
    </script>
</body>
</html>